
<template>
  <view class="social-app-container">
    <!-- 标签栏 -->
    <view class="tab-bar">
      <view class="tab active">发现</view>
    </view>
    
    <!-- 动态内容区域 -->
    <view class="posts-container">
      <!-- 第一条动态 -->
      <finditem v-for="(obj,index) in pages" :obj="obj" :key="index"></finditem>
    </view>

  </view>
</template>

<script>
	import finditem from "@/component/find/find_item.vue"
	import myrequest from "@/untils/request.js"
export default {
	components:{
		finditem
	},
  name: 'findPage2',
  props:{
	pages:{
		type:Array,
		default:()=>[]
	}  
  },
  data() {
    return {
      
    }
  },
  methods:{
	  getitems(){  //发送请求
		  
	  }
  },mounted() {
  	
  }
}
</script>

<style scoped>
.social-app-container {
  max-width: 414px;
  margin: 0 auto;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  min-height: 100vh;
  padding-bottom: 60px; /* 为底部导航栏留出空间 */
}

/* 状态栏样式 */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.status-icons {
  display: flex;
  gap: 8px;
}

/* 标签栏样式 */
.tab-bar {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  position: relative;
}

.tab.active {
  color: #000;
  font-weight: bold;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
}

/* 动态卡片样式 */
.posts-container {
  padding: 12px;
}

/* .post-card {
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #f0f0f0;
  margin-right: 12px;
  overflow: hidden;
}

.user-info {
  flex: 1;
}

.username {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 2px;
}

.post-time {
  color: #888;
  font-size: 13px;
}

.more-options {
  font-size: 24px;
  color: #666;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
}

.post-content {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
  color: #333;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.post-image {
  aspect-ratio: 16/9;
  background-color: #f5f5f7;
  border-radius: 8px;
  background-image: linear-gradient(135deg, #ffd166 0%, #ff9800 100%);
  position: relative;
  overflow: hidden;
}

.interaction-bar {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.interaction-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.icon {
  margin-right: 6px;
  font-size: 16px;
}

.count {
  font-weight: 500;
} */

/* 底部导航栏样式 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 414px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 10px 0;
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: #888;
  padding: 4px 16px;
  border-radius: 12px;
}

.nav-item.active {
  color: #000;
  font-weight: bold;
}

.nav-item.active .icon {
  color: #000;
}

.nav-item .icon {
  font-size: 20px;
  margin-bottom: 4px;
}
</style>